const os = require("os");
console.log(os.hostname());
const url = require("url");
console.log(url.parse('https://user:pass@sub.host.com:8080/p/a/t/h?query=string#hash'));
const querystring = require('querystring');
var str = querystring.stringify({ foo: 'bar', baz: ['qux', 'quux'], corge: '' });
console.log(str);
console.log(querystring.parse(str));
const util = require('util');
console.log(util.format('%s:%s', '移动2203', '332陈则瑜'));
const crypto = require('crypto');
var shasum = crypto.createHash('sha256');
shasum.update('crypto_hash');
var output = shasum.digest('hex')
console.log('crypto_hash:', output);